<template>
  <div class="container">
    <div class="title">电车概况</div>
    <div class="item">
      <div class="number">{{ carOverviewData.total }}</div>
      <div class="label">总数</div>
    </div>
    <div class="item">
      <div class="number">{{ carOverviewData.active }}</div>
      <div class="label">启用</div>
    </div>
    <div class="item">
      <div class="number">{{ carOverviewData.working }}</div>
      <div class="label">工作中</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CarOverview',
  props: {
    carOverviewData: {
      type: Object,
      default: () => ({
        total: 0,
        active: 0,
        working: 0
      })
    }
  }
}
</script>

<style scoped>
.container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  background-color: transparent;
  padding: 10px 0;
}
.title {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: #36C4FF;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
}

.item {
  text-align: center;
}

.number {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
  font-family: 'Orbitron', sans-serif;
}

.label {
  font-size: 24px;
  color: #ccc;
  font-family: 'Arial', sans-serif;
}
</style>

